home *** CD-ROM | disk | FTP | other *** search
- # Written by Urb LeJeune, lejeune@acy.digex.net
- # Script "runit" used to make a script file(s) executable.
- #
- # The syntax is:
- # runit script-name-list
- # replace script-name-list with the file name(s) to be make
- # executable. List is in the form: runit file-1 file-2 ... file-n
- # Wild cards may be used, such as runit abc*
- # Which will make any file beginning with "abc" executable.
- #
- # Test to see if there is a passed parameter #
- if test -z "$1"
- then # There is no passed parameter
- echo .
- echo " The syntax for this script is:"
- echo " runit <script-name-list>"
- echo " replacing <script-name-list> (without the <>) with"
- echo " a file list that is to be made executable."
- echo " File list is in the form: runit file-1 file-2 ... file-n"
- echo " Wild cards may be used, such as runit abc*"
- echo " Which will make any file beginning with abc executable."
- echo .
- else # There is a passed parameter
- # Make the passed script(s) executable.
- chmod u+x $@
- fi # end if
-